package com.hopes.bizz.close.statistic.vo;

import com.hopes.bizz.close.common.constant.enums.ParkCloseModDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 危险品出入数据VO
 * @time 2024/2/16 21:31
 */
@Data
public class GoodsEnterOuterVO implements Serializable {

    private static final long serialVersionUID = -7087999779591030322L;

    /**
     * 危险品Id
     */
    private Long goodsId;

    /**
     * 入库数量
     */
    private Double enterNum;

    /**
     * 出库数量
     */
    private Double outerNum;


    public GoodsEnterOuterVO(Long goodsId, Double enterNum, Double outerNum) {
        this.goodsId = goodsId;
        this.enterNum = enterNum;
        this.outerNum = outerNum;
    }

    public String getGoodsIdStr() {
        return DictResolver.getItemLabelByValue(ParkCloseModDictEnum.closed_hazard_goods, this.getGoodsId());
    }
}
